-- Super Delete, Copyright by Mac Help Co., January 1988
-- by Chris Hostetter, Mac Help Co., 1800 East Market Street
-- Long Beach, CA 90805, (213) 428-7414
-- The script for this button is copyrighted and may not be
-- used without the written permission of the author (above).
end copyright
on mouseUp
Global TrapFieldName
-- Uses the script "on MouseWithin" located in the script of the stack
set the loc of the message box to 20,300
put "MOVE pointer inside field to Sort by, then press" && "COMMAND KEY down."
put "Sort" into TrapFieldName
put empty into LastField
end mouseUp
-- part 2 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=320 top=23 right=38 bottom=380
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: See Script
----- HyperTalk script -----
on mouseUp
edit script of card button "Super Sort"
end mouseUp
-- part 3 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=188 top=61 right=75 bottom=212
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: New Button
----- HyperTalk script -----
on mouseUp
edit script of this stack
end mouseUp
-- part contents for background part 8
----- text -----
Card 18 of 20
-- part contents for background part 9
----- text -----
SUPER SORT
This button uses the script on MouseWithin located in the stack script section. (see on MouseWithin.) It allows the user to simply point at any field they wish to sort by, and press the command key. Simple.